<?

$printables =[
	[
		'name'=>'Summary Of Enrollment unverified',
		'desc'=>'This will show all enrollment summary of all enrolled students verified or unverified by the school registrar.',
		'link'=>'pdf/enrollmentsummary/unverified',
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Summary Of Enrollment Verified',
		'desc'=>'This will show all enrollment summary of all enrolled students that is verified by the school registrar.',
		'link'=>'pdf/enrollmentsummary/verified',
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Section Overview',
		'desc'=>'This will print the overview off all sections.',
		'link'=>'pdf/sectionoverview',
		'class'=> 'btn confirm'
	],
	//[
	//	'name'=>'Section Summary',
	//	'desc'=>'This will print the detailed section data.',
	//	'link'=>'pdf/sectionsummary',
	//	'class'=> 'btn confirm'
	//],
	[
		'name'=>'Print Enrollment List',
		'desc'=>'Print all students.',
		'link'=>'pdf/allstudents/format/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Print Foreign Students',
		'desc'=>'Print all foreign students.',
		'link'=>'pdf/print_foreign/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Print Foreign Status',
		'desc'=>'Print all foreign data and current status.',
		'link'=>'pdf/foreign_data/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Print Non Foreign',
		'desc'=>'Print non foreign students only.',
		'link'=>'pdf/nonforeign/'.$hash,
		'class'=> 'btn confirm'
	],
	
	[
		'name'=>'Print All Classlist',
		'desc'=>'Prints all sections with their respective adviser and students.',
		'link'=>'pdf/classlist/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Print Specific Class List',
		'desc'=>'Prints a specific class list.',
		'link'=>'pdf/thisclasslist/'.$hash,
		'class'=> 'btn printclasslistone',
		'attr'=>'data-url-to="'.site_url('pdf/sectionforclasslist').'" '
	]
];


$excel = [
	[
		'name'=>'Insurance',
		'desc'=>'Insurance.',
		'link'=>'excel_gen/insurance/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Enrollment List (Excel)',
		'desc'=>'Enrollment list (Excel).',
		'link'=>'excel_gen/enrollmentlist/'.$hash,
		'class'=> 'btn confirm'
	],
	[
		'name'=>'Birthday List (Excel)',
		'desc'=>'Generates student age on given date(Excel)',
		'link'=>'excel_gen/custombdaylist/'.$hash.'/',
		'class'=> 'btn',
		'attr' => 'id="print_birthday_list"'
	],
	[
		'name'=>'Concacts',
		'desc'=>'This will direct you to a new page. You can view contact number and even export contacts to your favourite email client (Gmail and Yahoo clients supported).',
		'link'=>'search/contacts',
		'class'=> 'btn confirm',
		'attr' => 'title="Continue?"'
	],
	[
		'name'=>'Print Siblings',
		'desc'=>'Print all students siblings with their parents.',
		'link'=>'excel_gen/siblings/'.$hash,
		'class'=> 'btn confirm'
	]
];
?>
<p class="lead-title">Printables EXCEL/PDF <i class="fa fa-download fa-spin"></i></p>
<div class="section-container auto" data-section data-options="deep_linking: true">
  <section class="active">
    <p class="title" data-section-title><a href="#pdf">PDF</a></p>
    <div class="content" data-slug="pdf" data-section-content>
      <span class="clearfix"></span>
      <div class="panel"><h5>List of Printable Data in PDF Format</h5></div>

		<table class="table table-stripped">
			<tr class="info">
				<td><b>Type Of Printable</b></td>
				<td><b>Description</b></td>
				<td></td>
			</tr>
			<?foreach($printables as $k => $v):?>
			<tr>
				<td><?=$v['name'];?></td>
				<td><?=$v['desc'];?></td>
				<td style="min-width:90px;"><a href="<?=site_url($v['link']);?>" <?=isset($v['attr'])?$v['attr']:NULL;?> class="<?=isset($v['class'])? $v['class'] : NULL;?>" target="_blank">Print <i class="icon-print"></i></td>
			</tr>
			<?endforeach;?>
		</table>
	</div>
  </section>
  <section>
    <p class="title" data-section-title><a href="#excel">Excel</a></p>
    <div class="content" data-slug="excel" data-section-content>
      <span class="clearfix"></span>
       <div class="panel"><h5>List of Printable Data in EXCEL Format</h5></div>
      	<table class="table table-stripped">
			<tr class="info">
				<td><b>Type Of Printable</b></td>
				<td><b>Description</b></td>
				<td></td>
			</tr>
			<?foreach($excel as $k => $v):?>
			<tr>
				<td><?=$v['name'];?></td>
				<td><?=$v['desc'];?></td>
				<td style="min-width:90px;"><a href="<?=site_url($v['link']);?>" <?=isset($v['attr'])?$v['attr']:NULL;?> class="<?=isset($v['class'])? $v['class'] : NULL;?>" target="_blank">Download <i class="fa fa-download"></i></td>
			</tr>
			<?endforeach;?>
		</table>
    </div>
  </section>
</div>

<script src="<?=script_url('custom/printables');?>"></script>